import request from '@/utils/request'

// 查询订单信息
export function getOrderInfo(data) {
  return request({
    url: '/orderItem/getOrderInfo',
    method: 'get',
    params: data
  })
}

// 录入售卖商品
export function orderItem(data) {
  return request({
    url: '/orderItem/orderItem',
    method: 'get',
    params: data
  })
}

// 确认售卖
export function confirmSale(data) {
  return request({
    url: '/orderItem/confirmSale',
    method: 'get',
    params: data
  })
}

// 获得饼状图数据
export function getPieData() {
  return request({
    url: '/orderItem/pie',
    method: 'get'
  })
}
